package dest;

/**
 * @author feng
 * @Date 2022/2/26 21:59
 * 强制类型转换
 *  大类型--小类型转换
 *  float必须是f结尾，否则是双精度float类型
 */
public class demo3 {
    public static void main(String[] args) {
        double b = 11;
        float f = 11121f;
        //精度损失
        double c = (double) f + b;
        System.out.println(c);

        int a = 128;
        byte b1 = (byte) a;
        System.out.println(b1 + "精度损失");
    }
}
